<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">营销管理</a></li>
            <li class="active"><a href="javascript:;">授信管理</a></li>
        </ul>
        <div class="product-view-area">
            <p>授信记录</p>
        </div>
        <div class="yunfei-templete-grid">
            <?php if ($list->num_rows() > 0) :?>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th width="100">被授信人账号</th>
                            <th width="100">授信类型</th>
                            <th width="100">授信金额</th>
                            <th width="100">描述</th>
                            <th width="100">回复</th>
                            <th width="100">授信时间</th>
                            <th width="100">回复时间</th>
                            <th width="100">状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($list->result() as $key=>$item):?>
                        <tr>
                            <td>
                                <p><?php echo $user_name?:'';?></p>
                                <p><?php echo $mobile_phone?:'';?></p>
                            </td>
                            <td><?php echo $log_type[$item->type];?></td>
                            <td><?php echo $item->money;?></td>
                            <td><?php echo $item->note;?></td>
                            <td><?php echo $item->reply;?></td>
                            <td><?php echo $item->created_at;?></td>
                            <td><?php echo $item->reply_time;?></td>
                            <td><?php if ($item->type == 3 && $item->state == 0): echo '未审核'; elseif ($item->type == 3 && $item->state == 1): echo '已审核';endif;?></td>
                        </tr>
                        <?php endforeach;?>
                    </tbody>
                </table>
                <div class="your-page pagination pagination-right"><?php echo $pg_link;?></div>
            <?php else :?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>